package cn.boat.router.utils;

import cn.boat.router.models.Broker;

import java.util.ArrayList;
import java.util.List;

public class ConvertUtils {
    // 只保留brokerId字段
    public static List<Integer> filterBrokerId(List<Broker> brokers) {
        List<Integer> result = new ArrayList<>(brokers.size());
        for (Broker broker : brokers) {
            result.add(broker.getBrokerId());
        }
        return result;
    }
}
